<div class="modal-content" style="margin-top: 100px;">
	<div class="pianadd">
		<div class="modal-header">
			<h5 class="modal-title"><span class="iconfont icon-ceshishenqing1">&nbsp;</span>选择学生</h5>
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">×</span>
			</button>
		</div>

		<form class="div-find form-inline" style="margin: 20px;">
			<div class="form-group">
				<label class="form-label">学生：</label>
				<input ng-model="form.name" type="text" class="form-control" placeholder="学生姓名"/>
			</div>
			<div class="form-group">
				<label class="form-label">年级：</label>
				<select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-change="findMajor();findClass()" ng-model="form.fk_grade">
					<option value="">==请选择==</option>
				</select>
			</div>
			<div class="form-group">
				<label class="form-label">专业：</label>
				<select class="form-control" ng-options="major.id as major.name for major in majorList" ng-change="findClass()" ng-model="form.fk_major">
					<option value="">==请选择==</option>
				</select>
			</div>
			<div class="form-group">
				<label class="form-label">班级：</label>
				<select class="form-control" ng-options="class.id as class.class_name for class in classList" ng-model="form.fk_class">
					<option value="">==请选择==</option>
				</select>
			</div>
			<div class="form-group">
				<label class="form-label">学籍状态：</label>
				<select class="form-control" ng-options="state.id as state.name for state in xjztList" ng-model="form.state">
					<option value="">==请选择==</option>
				</select>
			</div>

			<button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
		</form>

		<div class="div-table" style="margin: 20px;">
			<table class="table table-hover table-bordered">
				<thead>
				<tr>
					<th column="name" class="sorting" ng-click="order($event.target)">学生账号</th>
					<th column="id_card" class="sorting" ng-click="order($event.target)">姓名</th>
					<th column="xjzh" class="sorting" ng-click="order($event.target)">性别</th>
					<th column="grade_sort" class="sorting" ng-click="order($event.target)">年级</th>
					<th column="class_sort" class="sorting" ng-click="order($event.target)">专业</th>
					<th column="status" class="sorting" ng-click="order($event.target)">班级名称</th>
					<th column="status" class="sorting" ng-click="order($event.target)">操作</th>
				</tr>
				</thead>

				<tbody ng-switch on="page.current_num">
				<tr ng-switch-when="0">
					<td colspan="100" >查询无记录</td>
				</tr>
				<tr ng-repeat="student in studentList">

					<td>{{student.xh}}</td>
					<td>{{student.name}}</td>
					<td>{{student.sex_name}}</td>
					<td>{{student.grade_name}}</td>
					<td>{{student.major_name}}</td>
					<td>{{student.class_name}}</td>
					<td>
						<button type="button" ng-click="choose(student)" class="btn btn-link">
							<i class="fe fe-bar-chart-2"></i>选择
						</button>
					</td>
				</tr>
				</tbody>
			</table>
			<div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
		</div>
	</div>
</div>
